package com.ljs.myspringboot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Classes {
    int cid;
    String cname;
    int id;
    List<Student_boot> studentList;

    public Classes(String cname, int id) {
        this.cname = cname;
        this.id = id;
    }

    @Override
    public String toString() {
        return "Classes{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", id=" + id +
                ", studentList=" + studentList +
                '}';
    }
}
